package service

import (
	v1 "gitee.com/jacktuotuo/coolcar/api/trip/service/v1"
	"gitee.com/jacktuotuo/coolcar/app/trip/internal/biz"
	"github.com/go-kratos/kratos/v2/log"
	"github.com/google/wire"
)

// ProviderSet is service providers.
var ProviderSet = wire.NewSet(NewTripService)

// TripService is a greeter service.
type TripService struct {
	v1.UnimplementedTripServer
	uc  *biz.TripUsecase
	log *log.Helper
}

// NewTripService new a greeter service.
func NewTripService(uc *biz.TripUsecase, logger log.Logger) *TripService {
	return &TripService{uc: uc, log: log.NewHelper(logger)}
}
